package cn.caterer.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.caterer.mapper.EmployeeMapper;
import cn.caterer.pojo.Employee;
@Service
public class LoginServiceImpl implements LoginService{
	@Resource
	private EmployeeMapper employeeMapper;
	@Override
	public Employee login(Employee employee) throws Exception {
		List<Employee> list=employeeMapper.Query(employee);
		for (Employee employee2 : list) {
			employee=employee2;
		}
		return employee;
	}

}
